<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/10/11
  Time: 18:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录界面</title>
    <style>
        .ta1{
            border: 1px solid black;
            text-align: center;
            width: 500px;
        }
        td{
            border: 1px solid black;
            text-align: center;
        }
        .div1{
            text-align: center;
            display: block;
            margin: 0 auto;
            height: 300px;
            width: 500px;
        }
    </style>
</head>
<body>
<div class="div1">
    <h1>用户登录</h1>
    <c:if test="${index == 1}">
        <h1 style="color: red;">登陆失败，请重新登录</h1>
    </c:if>
    <c:if test="${Filter_index == 1}">
        <h1 style="color: red;">你没有登录请登录</h1>
    </c:if>
    <form action="<c:url value="/ProcessRequest"/>" method="get">
        <table class="ta1">
            <tr>
                <td>用户名</td> <td colspan="4"> <input type="text" name="username"></td>
            </tr>
            <tr>
                <td>密码</td> <td colspan="4"><input type="password" name="password"></td>
            </tr>
            <tr>
                <td>自动登陆时间：</td>
                <td>
                    <input type="radio" name="time" value="OneMonth">一个月
                    <input type="radio" name="time" value="trimester">三个月
                    <input type="radio" name="time" value="Half">半年
                    <input type="radio" name="time" value="OneYear">一年
                    <input type="radio" name="time" value="TwoAndAHalfYears">两年半
                </td>
            </tr>
            <tr>
                <td colspan="5"><button type="submit">登录</button> <button type="reset">重置</button> </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
